home *** CD-ROM | disk | FTP | other *** search
/ SGI Developer Toolbox 6.1 / SGI Developer Toolbox 6.1 - Disc 4.iso / src / exampleCode / viewkit / builderExamples / stopwatch / StopwatchDerived.c++ < prev    next >
Encoding:
C/C++ Source or Header  |  1994-08-02  |  837 b   |  38 lines

  1. /////////////////////////////////////////////////////////////
  2. //
  3. // Source file for StopwatchDerived
  4. //
  5. //    This file generated by BuilderXcessory. 
  6. /////////////////////////////////////////////////////////////
  7.  
  8. #include "StopwatchDerived.h"
  9. #include <Vk/VkPeriodic.h>           // Typed line
  10.  
  11.  
  12. StopwatchDerived::StopwatchDerived(const char *name, Widget parent) : 
  13.                    Stopwatch(name, parent) 
  14.     _timer = new VkPeriodic(1000);   // Typed line
  15.  
  16.     _control->attach(_timer); // Typed line
  17.  
  18.     VkAddCallbackMethod( VkPeriodic::timerCallback,  // Typed line
  19.              _timer, _face,
  20.              &FaceDerived::updateTimeCallback, NULL);
  21. }
  22.  
  23.  
  24. StopwatchDerived::~StopwatchDerived()
  25. {
  26.     delete _timer;                  // Typed line
  27. }
  28.  
  29.  
  30. const char * StopwatchDerived::className() // classname
  31. {
  32.     return ("StopwatchDerived");
  33. }
  34.  
  35.  
  36.  
  37.